openjdk-14 do_configure failed #error #oe
Hello guys,
I have a core-image-base for a beaglebone black compiled and running, I am very happy with the yocto framework I am trying to get flying in our project. On top of my current image I am trying to put a openjre into my image with the meta-java layer.
In bblayers.conf I added
/home/insidem2m/poky/meta-openembedded/meta-oe
/home/insidem2m/poky/meta-java
and in my local.conf I added
IMAGE_INSTALL_append = " e2fsprogs-resize2fs dropbear i2c-tools docker-ce openjre-14"
OPENJDK14_BOOT_JDK="/home/insidem2m/buildroot-2021.02-rc3/output/host/usr/lib/jvm"
PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native"
PREFERRED_PROVIDER_virtual/java-native = "jamvm-native"
PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native"
Nevertheless if I try to pull in openjdk-8, openjre-8 or openjre-14 (from the meta-java g0hl1n/jdk14 branch), my build breaks this way:
| AUTOV is 1.16
| NOTE: Executing ACLOCAL="aclocal --system-acdir=/home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/recipe-sysroot-native/usr/share/aclocal/ --automake-acdir=/home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/recipe-sysroot-native/usr/share/aclocal-1.16" autoreconf -Wcross --verbose --install --force --exclude=autopoint --exclude=gtkdocize -I /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/jdk14u-jdk-14.0.1-ga/make/autoconf/ -I /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/jdk14u-jdk-14.0.1-ga/make/autoconf/build-aux/
| autoreconf: export WARNINGS=cross,no-obsolete
| autoreconf: Entering directory '.'
| autoreconf: configure.ac: not using Gettext
| autoreconf: running: aclocal --system-acdir=/home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/recipe-sysroot-native/usr/share/aclocal/ --automake-acdir=/home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/recipe-sysroot-native/usr/share/aclocal-1.16 -I /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/jdk14u-jdk-14.0.1-ga/make/autoconf/ -I /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/jdk14u-jdk-14.0.1-ga/make/autoconf/build-aux/ --force
| basics.m4:52: warning: underquoted definition of $1
| basics.m4:52: run info Automake 'Extending aclocal'
| basics.m4:52: or see https://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
| Use of uninitialized value $1 in quotemeta at (eval 16) line 470.
| Use of uninitialized value $1 in string at (eval 16) line 470.
| Use of uninitialized value $1 in quotemeta at (eval 16) line 470.
| Use of uninitialized value $1 in string at (eval 16) line 470.
| Use of uninitialized value $1 in quotemeta at (eval 16) line 470.
| Use of uninitialized value $1 in string at (eval 16) line 470.
[...] very much millions of those lines snipped
| Use of uninitialized value $1 in quotemeta at (eval 16) line 470.
| Use of uninitialized value $1 in string at (eval 16) line 470.
| configure.ac:225: warning: AC_CHECK_HEADERS($HEADERS_TO_CHECK): you should use literals
| ../autoconf-2.71/lib/autoconf/headers.m4:217: AC_CHECK_HEADERS is expanded from...
| libraries.m4:85: LIB_SETUP_LIBRARIES is expanded from...
| configure.ac:225: the top level
| autoreconf: configure.ac: tracing
| autoreconf: configure.ac: creating directory $TOPDIR/make/autoconf/build-aux
| autoreconf: error: cannot create $TOPDIR/make/autoconf/build-aux: No such file or directory
| autoreconf: configure.ac: not using Libtool
| autoreconf: configure.ac: not using Intltool
| autoreconf: configure.ac: not using Gtkdoc
| autoreconf: running: /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/recipe-sysroot-native/usr/bin/autoconf --include=/home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/jdk14u-jdk-14.0.1-ga/make/autoconf/ --include=/home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/jdk14u-jdk-14.0.1-ga/make/autoconf/build-aux/ --force
| configure.ac:225: warning: AC_CHECK_HEADERS($HEADERS_TO_CHECK): you should use literals
| ../autoconf-2.71/lib/autoconf/headers.m4:217: AC_CHECK_HEADERS is expanded from...
| libraries.m4:85: LIB_SETUP_LIBRARIES is expanded from...
| configure.ac:225: the top level
| autoreconf: configure.ac: not using Autoheader
| autoreconf: configure.ac: not using Automake
| Error in tempfile() using template $TOPDIR/make/autoconf/build-aux/XXXXXXXXXX: Parent directory ($TOPDIR/make/autoconf/build-aux/) does not exist at /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/recipe-sysroot-native/usr/bin/autoreconf line 411.
| WARNING: /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/temp/run.do_configure.27035:293 exit 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
| #1: bbfatal_log, /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/temp/run.do_configure.27035, line 293
| #2: die, /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/temp/run.do_configure.27035, line 273
| #3: autotools_do_configure, /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/temp/run.do_configure.27035, line 235
| #4: do_configure, /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/temp/run.do_configure.27035, line 159
| #5: main, /home/insidem2m/poky/build/tmp/work/x86_64-linux/openjdk-14-native/14.0.1-r0/temp/run.do_configure.27035, line 297
|
| Backtrace (metadata-relative locations):
| #1: bbfatal_log, /home/insidem2m/poky/meta/classes/logging.bbclass, line 72
| #2: die, /home/insidem2m/poky/meta/classes/base.bbclass, line 56
| #3: autotools_do_configure, /home/insidem2m/poky/meta/classes/autotools.bbclass, line 224
| #4: do_configure, autogenerated, line 5
*ERROR* : Task (virtual:native:/home/insidem2m/poky/meta-java/recipes-core/openjdk/openjdk-14_14.0.1.bb:do_configure) failed with exit code '1'
*NOTE* : Tasks Summary: Attempted 5311 tasks of which 5219 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
virtual:native:/home/insidem2m/poky/meta-java/recipes-core/openjdk/openjdk-14_14.0.1.bb:do_configure
Summary: There were 7 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Can somebody experienced help me to find out what is breaking my build? It looks like there is a variable missing or generally something missing the build is referring to.
I found something similair in this list at
[oe] OpenJdk9 (openembedded.org) ( https://www.openembedded.org/pipermail/openembedded-devel/2017-July/113896.html )
with the suggestion to skip the autoconf stuff. But this is not helpful because then I am missing the patch applied before configuring
0002-make-autoconf-toolchain-remove-invalid-compiler-chec.patch
which looks introduced into the openjdk-14 branch. At this place my openjdk-8 build attempts breaks (BASENAME invalid argument stuff) also, this is why I tested the openjre-14 branch.
Kind Regards
Konsti